import Vue from "vue";
import VueRouter from "vue-router";
import todolist from "../views/todo.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/todo",
  },
  {
    path: "/todo",
    name: "todo",

    component: todo,
  },
];

const router = new VueRouter({
  routes,
});

export default router;
